home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
program
/
tjgold.zip
/
INSTALL.003
/
DEMRD9.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1995-05-29
|
2KB
|
60 lines
{--------------------------------------------------------------------------}
{ Product: TechnoJock's Turbo Toolkit GOLD }
{ }
{ TTT GOLD - DEMO PROGRAM }
{ }
{ Copyright 1986-1995 TechnoJock Software, Inc. }
{ All Rights Reserved }
{ Restricted by License }
{--------------------------------------------------------------------------}
{Description: DEMRD9.PAS
Illustrates prompting for a string variable
with the added ability of password entry.
}
Program DemRd9; { password }
{$I GOLDFLAG.INC}
uses DOS,CRT, GoldAttr, GoldStr, GoldMisc,
GoldFast, GoldRead, GoldIO, GoldWin, GoldKey;
var TmpMsg, TmpStr: string;
procedure SetScreen;
{}
begin
Clear(WhiteOnCyan,'▒');
ClearLine(1,WhiteOnBlue);
WriteCenter(1,UseTint,' Demo of PromptStr from GOLDREAD ');
WriteAt(1,2,BlueOnRed,replicate(80,'▀'));
WriteAT(70,2,WhiteOnBlack,'TTT Gold!');
ClearLine(25,YellowOnBlue);
end; { SetScreen }
begin
{$IFOPT D+}
HeapRecord;
{$ENDIF}
SetScreen;
MouseShow(true);
if ReadVars.PromptStyle = 4 then
UseCustomChars;
ReadVars.Password := true;
TmpStr := PromptStr(0,5,29,'^Enter User Password:',
' GoldRead Input Demo ','',true);
if ReadVars.LastAction = Escaped then
TmpMsg := 'You choose to leave!'
else if Strip('A',' ',TmpStr) = '' then
TmpMsg := 'You didn''t make an entry'
else
TmpMsg := 'You entered '+TmpStr;
PromptOK(' PromptStr ',TmpMsg);
MouseShow(false);
clrscr;
{$IFOPT D+}
HeapCheck;
{$ENDIF}
end.